package com.qijian.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qijian.common.annotation.JoinField;
import com.qijian.common.enums.ApprovalDescriptionEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 发货计划明细对象 im_delivery_plan_detail
 *
 * @author qijian
 * @date 2024-01-11
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("im_delivery_plan_detail")
public class DeliveryPlanDetail extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "id")
    private Long id;

    @Excel(name = "主表id")
    @JoinField
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "主表id")
    private Long mainId;

    @Excel(name = "销售合同id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "销售合同id")
    private Long salesId;

    @Excel(name = "销售合同明细id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "销售合同明细id")
    private Long salesDetailId;

    @Excel(name = "销售合同明细发运计划id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "销售合同明细发运计划id")
    private Long salesDetailDeliveryPlanId;

    @Excel(name = "合同号")
    @ApiModelProperty(value = "合同号")
    private String number;

    @Excel(name = "合同行号")
    @ApiModelProperty(value = "合同行号")
    private Long lineNo;

    @ApiModelProperty(value = "客户id")
    private Long customerId;

    @Excel(name = "客户名称")
    @ApiModelProperty(value = "客户名称")
    private String customerName;

    @Excel(name = "产品id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "产品id")
    private Long itemId;

    @Excel(name = "产品编码")
    @ApiModelProperty(value = "产品编码")
    private String itemCode;

    @Excel(name = "产品名称")
    @ApiModelProperty(value = "产品名称")
    private String itemName;

    @Excel(name = "数量")
    @ApiModelProperty(value = "数量")
    private BigDecimal quantity;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单要求出厂日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "订单要求出厂日期")
    private Date kingdeeReleaseDate;

    @Excel(name = "商务员")
    @ApiModelProperty(value = "商务员")
    private String businessMan;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "商务员id")
    private Long businessManId;

    @Excel(name = "工艺员")
    @ApiModelProperty(value = "工艺员")
    private String gyUserName;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "创建人id")
    private Long createById;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "工艺员id")
    private Long gyUserId;



    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "计划发货时间")
    private Date planReleaseDate;

}
